-- GENERATED SPELL FOR [Razormane Pathfinder] --


function spell0_3456(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(6660,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3456', 617, 1)
end

function spell1_3456(pUnit, Event) --@Thrash,Self--
pUnit:FullCastSpellOnTarget(3391,pUnit)
pUnit:RegisterEvent('Sorts_3456', 590, 1)
end

function Sorts_3456(pUnit, Event)
local choix_sorts_3456 = math.random(0, 1)
if choix_sorts_3456 == 0 then
pUnit:RegisterEvent('spell0_3456', 1, 1)
end
if choix_sorts_3456 == 1 then
pUnit:RegisterEvent('spell1_3456', 1, 1)
end
end

function mob3456_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3456', math.random(1500, 3000), 1)
end

function mob3456_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3456_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3456_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3456, 1, 'mob3456_Action')
RegisterUnitEvent(3456, 2, 'mob3456_Leave')
RegisterUnitEvent(3456, 3, 'mob3456_Kill')
RegisterUnitEvent(3456, 4, 'mob3456_Die')
